package com.hmily.cloud.elasticsearch.dal.bean;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <h1>商品数据库对象。</h1><br/>
 *
 * <h1><br/><a href="https://u.geekbang.org/subject/arch3/100614201">Java 业务架构实战营：https://u.geekbang.org/subject/arch3/100614201</a></h1><br/><h1><a href="https://gitee.com/ylimhhmily/BizArchPracticeCamp">Java 业务架构实战营代码地址：https://gitee.com/ylimhhmily/BizArchPracticeCamp</a></h1><br/><h1><a href="https://u.geekbang.org/subject/java4th/1001148?source=app_share">高级 Java 工程体系课 2023 版：https://u.geekbang.org/subject/java4th/1001148?source=app_share</a></h1><br/><h1><a href="https://time.geekbang.org/column/intro/100312101?tab=catalog">Dubbo 源码剖析与实战：https://time.geekbang.org/column/intro/100312101?tab=catalog</a></h1>
 *
 * @author hmilyylimh
 *         ^_^
 * @version 0.0.1
 *         ^_^
 * @date 2023/10/2
 *
 */
@Getter
@Setter
@ToString(callSuper = true)
public class GoodsDO implements Serializable {

    private static final long serialVersionUID = -9158142167502962748L;

    /** <h2>商品编号, 例: 1330154</h2> **/
    private Long id;
    /** <h2>商品标题, 例: HTC Desire 820ts 镶蓝灰 移动4G手机 双卡双待</h2> **/
    private String title;
    /** <h2>商品价格, 例: 1498</h2> **/
    private BigDecimal price;
    /** <h2>商品库存, 例: 432</h2> **/
    private Integer stock;
    /** <h2>商品销售数量, 例: 319</h2> **/
    private Integer saleNum;
    /** <h2>商品分类, 例: 手机</h2> **/
    private String categoryName;
    /** <h2>商品品牌, 例: HTC</h2> **/
    private String brandName;
    /** <h2>其他内存网络等备注, 例: {\"机身内存\":\"16G\",\"网络\":\"移动4G\"}</h2> **/
    private String spec;
    /** <h2>上下架状态, 例: 0</h2> **/
    private Integer status;
    /** <h2>商品创建时间, 例: 2022-06-02 13:31:17</h2> **/
    private String createTime;
}